import { createApp } from "vue";

import App from "./App.vue";

import { createPinia } from "pinia";

import "./assets/global.less";

import "./assets/el-reset.less";

import router from "./router";

import ElementPlus from "element-plus";

import "element-plus/dist/index.css";
//路由钩子
import "./utils/routerHook";
//引入Pinia持久存储的创建
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import NProgress from "nprogress";
import "nprogress/nprogress.css";

let pinia = createPinia();
//使用持久化存储
pinia.use(piniaPluginPersistedstate);

let app = createApp(App);
app.use(pinia);
app.use(ElementPlus);
app.use(router);
app.mount("#app");
